package com.r2coding.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.r2coding.article.entity.ArticleEntity;
import com.r2coding.article.vo.req.GetArticlesByIdReqVo;
import com.r2coding.article.vo.req.LabelListReqVo;
import com.r2coding.article.vo.resp.ArticleRespVo;
import com.r2coding.article.vo.resp.LabelListRespVo;
import com.r2coding.common.util.PageUtils;
import com.r2coding.article.entity.LabelEntity;

import java.util.List;
import java.util.Map;
/**
 * 
 *
 * @author 98k灬
 * @email hk666zx@163.com
 * @date 2022-04-13 19:34:16
 */
public interface LabelService extends IService<LabelEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<LabelEntity> getLabelsByArticleId(Integer id);

    List<LabelListRespVo> labelList();

    List<LabelListReqVo> selectAllLabels();

    LabelListReqVo getLabelById(Integer labelId);

    void addLabel(LabelListReqVo reqVo);

    void updateLabel(LabelListReqVo reqVo);

    ArticleRespVo getArticlesById(GetArticlesByIdReqVo vo);

    List<LabelEntity> getLabel();
}

